import request from '@/utils/request'




// 查询APP用户列表
export function listAppUser(query) {
  return request({
    url: '/basicInformation/appUser/list',
    method: 'get',
    params: query
  })
}
// 查询APP用户列表
export function touristList(query) {
  return request({
    url: '/basicInformation/appUser/touristList',
    method: 'get',
    params: query
  })
}
export function listUserCurrentPoint(query) {
  return request({
    url: '/basicInformation/appUser/listUserCurrentPoint',
    method: 'get',
    params: query
  })
}

// 查询APP用户详细
export function getAppUser(id, type) {
  return request({
    url: '/basicInformation/appUser/' + id + '/' + type,
    method: 'get'
  })
}

// 新增APP用户
export function addAppUser(data) {
  return request({
    url: '/basicInformation/appUser',
    method: 'post',
    data: data
  })
}

// 修改APP用户
export function updateAppUser(data) {
  return request({
    url: '/basicInformation/appUser',
    method: 'put',
    data: data
  })
}

// 删除APP用户
export function delAppUser(id) {
  return request({
    url: '/basicInformation/appUser/' + id,
    method: 'delete'
  })
}

// 导出APP用户
export function exportAppUser(query) {
  return request({
    url: '/basicInformation/appUser/export',
    method: 'get',
    params: query
  })
}

// 下载用户导入模板
export function importTemplate() {
  return request({
    url: '/basicInformation/appUser/importTemplate',
    method: 'get'
  })
}

export function unBundling(query) {
  return request({
    url: '/basicInformation/appUser/unBundling',
    method: 'post',
    data: query
  })
}
